import request from '@/utils/request'

// 查询高级查询sql脚本字段列表
export function listOnlViewField(query) {
  return request({
    url: '/field/onlViewField/list',
    method: 'get',
    params: query
  })
}

// 查询高级查询sql脚本字段详细
export function getOnlViewField(id) {
  return request({
    url: '/field/onlViewField/' + id,
    method: 'get'
  })
}

// 保存高级查询sql脚本字段
export function saveOnlViewField(data) {
  return request({
    url: '/field/onlViewField/save',
    method: 'post',
    data: data
  })
}

// 删除高级查询sql脚本字段
export function delOnlViewField(id) {
  return request({
    url: '/field/onlViewField/' + id,
    method: 'delete'
  })
}

// 导出高级查询sql脚本字段
export function exportOnlViewField(query) {
  return request({
    url: '/field/onlViewField/export',
    method: 'get',
    params: query
  })
}
